package com.iamteer.service.impl;

import java.util.List;

import com.iamteer.dao.IEmployeeDao;
import com.iamteer.dao.impl.EmployeeDao;
import com.iamteer.service.IEmployeeService;
import com.iamteer.entity.Employee;

/**
 * 3. 员工业务逻辑层，实现
 * @author Chuck
 *
 */
public class EmployeeService implements IEmployeeService {

	// 创建
	private IEmployeeDao employeeDao = new EmployeeDao();
	
	@Override
	public List<Employee> getAll() {
		try {
			return employeeDao.getAll();
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}

}
